package com.cssw.fyzb.core.dao.appeal;

import com.cssw.fyzb.core.model.dodb.AppealType;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author
 */
@Repository
public class AppealTypeDaoImpl implements AppealTypeDao {

    @Override
    public List<AppealType> listAppealType() {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("select * from d_appeal_type ");
        return AppealType.dao.find(stringBuilder.toString());
    }
    @Override
    public AppealType getById(String appealType){
        return  AppealType.dao.findById(appealType);
    }
}
